package com.dwin.dingnuo.http.beans;

import org.litepal.crud.LitePalSupport;

import java.io.Serializable;

/**
 * 用户信息保存
 * {"code":0,"message":"Operation successful","data":{"id":25,"username":"test6","email":"6@qq.com","name":"",
 * "cellphone":"18666666666","role_id":4,"status":1,"role_info":{"id":4,"role_name":"\u7528\u6237"},
 * "auth":"8250d05b59d7da50471e6d75a719b003"}}
 */
public class UserBean extends LitePalSupport implements Serializable {

    public int id;
    public String username;
    public String email;
    public String name;
    public String cellphone;

    public int role_id; // role_id（1-4）,分别代表：以级，二级，三级，四级用户
    public int status;
    public String auth;

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", email='" + email + '\'' +
                ", name='" + name + '\'' +
                ", cellphone='" + cellphone + '\'' +
                ", role_id=" + role_id +
                ", status=" + status +
                ", auth='" + auth + '\'' +
                '}';
    }
}
